from django.db import models


# Create your models here.
class StudentInfo(models.Model):
    id = models.BigAutoField(primary_key=True)
    name = models.CharField(max_length=50)
    age = models.IntegerField()
    nationality = models.CharField(max_length=50, null=True)
    tel = models.IntegerField(null=True, blank=True)
    email = models.EmailField(null=True, blank=True)

    def __str__(self):
        return self.name


class Students(models.Model):
    id = models.BigAutoField(primary_key=True)
    name = models.CharField(max_length=50)
    age = models.IntegerField()
    nationality = models.CharField(max_length=50, null=True)
    tel = models.IntegerField(null=True, blank=True)
    email = models.EmailField(null=True, blank=True)
